// 导出一个router对象
import { createRouter, createWebHashHistory } from 'vue-router'
import MyGoodsList from '@/views/MyGoodsList.vue'
import MyGoodsInfo from '@/views/MyGoodsInfo.vue'
import MyGoodsSearch from '@/views/MyGoodsSearch.vue'


 const routers = [
    {
        path: '/',
        name: 'MyGoodsList',
        component: MyGoodsList
    },
    {
        path: '/info',
        name: 'MyGoodsInfo',
        component: MyGoodsInfo
    },
    {
        path: '/search',
        name: 'MyGoodsSearch',
        component: MyGoodsSearch 
    }
 ];
 const router = createRouter({
    history: createWebHashHistory(),
    routes: routers,
 })
 export default router
